﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace LIU.Framework.Base
{

    /// <summary>
    /// 程序集查找器接口
    /// </summary>
    public interface IFinder
    {
        /// <summary>
        /// 所有的程序集
        /// </summary>
        Assembly[] AllAssemblies { get; }

        /// <summary>
        /// 根据指定条件查找类型
        /// </summary>
        /// <param name="filter"></param>
        /// <returns></returns>
        Type[] FindTypes(Func<Type, bool> filter);

        /// <summary>
        /// 根据指定条件实时查找类型
        /// </summary>
        /// <param name="filter"></param>
        /// <returns></returns>
        Type[] FindTypesRealTime(Func<Type, bool> filter);
    }
}
